import request from '@/utils/request'

// 根据条件查询产品信息
export function getProductDataByCondition(query) {
  return request({
    url: '/productDataInfo/list',
    method: 'get',
    params: query
  })
}
export function getReviewInfo(query) {
  return request({
    url: '/productDataInfo/reviewlist',
    method: 'get',
    params: query
  })
}

export function getOwnerFileInfo(query) {
  return request({
    url: '/productDataInfo/ownerFilelist',
    method: 'get',
    params: query
  })
}

export function commitReviewResult(query) {
  return request({
    url: '/productDataInfo/commitReviewResult',
    method: 'post',
    params: query
  })
}

// 更新产品数据
export function uploadProductData(data) {
  return request({
    url: "/productDataInfo/uploadProductData",
    method: "post",
    data,
  });
}

export function delProductData(params) {
  return request({
    url: "/productDataInfo/delProductDataById",
    method: "post",
    params,
  });
}

export function delProductReviewInfo(params) {
  return request({
    url: "/productDataInfo/delProductReviewInfoByReviewId",
    method: "post",
    params,
  });
}
